<?php /* Smarty version 2.6.26, created on 2014-02-20 19:48:19
         compiled from admin/nav/show.html */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<link rel="stylesheet" type="text/css" href="view/admin/style/basic.css" />
<link rel="stylesheet" type="text/css" href="view/admin/style/nav.css" />
</head>
<body>

<h2><a href="?a=nav&m=add">添加主导航</a>商品 -- 导航条列表</h2>
<div id="list">
    <form method="post" action="?a=nav&m=sort" >
    <table>
        <tr><th>名称</th><th>简介</th><th>子类</th><?php if ($this->_tpl_vars['oneNav']): ?><th>关联品牌</th><?php endif; ?><th>排序</th><th>操作</th></tr>
        <?php $_from = $this->_tpl_vars['allNav']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>    
        <tr><td><?php echo $this->_tpl_vars['value']->name; ?>
</td><td><?php echo $this->_tpl_vars['value']->info; ?>
</td><td><a href="?a=nav&sid=<?php echo $this->_tpl_vars['value']->id; ?>
">查看</a> | <a href="?a=nav&m=add&sid=<?php echo $this->_tpl_vars['value']->id; ?>
">添加</a></td><?php if ($this->_tpl_vars['oneNav']): ?><td><?php echo $this->_tpl_vars['value']->brand; ?>
</td><?php endif; ?><td><input type="text" name="sort[<?php echo $this->_tpl_vars['value']->id; ?>
]" class="sort" value="<?php echo $this->_tpl_vars['value']->sort; ?>
"/></td><td> <a href="?a=nav&m=update&id=<?php echo $this->_tpl_vars['value']->id; ?>
"><img src="view/admin/images/edit.gif" alt="编辑" title="编辑"/></a> <a href="?a=nav&m=delete&id=<?php echo $this->_tpl_vars['value']->id; ?>
"><img src="view/admin/images/drop.gif" alt="删除" title="删除" onclick="return confirm('确认删除?') ? true : false;"/></a></td></tr>
        <?php endforeach; else: ?>
        <tr><td colspan="6">没有任何数据</td></tr>
        <?php endif; unset($_from); ?>
        <?php if ($this->_tpl_vars['allNav']): ?><tr><td></td><td></td><td></td><td></td><td><input type="submit" name="send" value="排序"/></td><td></td></tr><?php endif; ?>
        <?php if ($this->_tpl_vars['oneNav']): ?><tr><td colspan="6">主类:[<?php echo $this->_tpl_vars['oneNav'][0]->name; ?>
] [<a href="?a=nav">返回</a>]</td></tr><?php endif; ?>
    </table>
    </form>
</div>
<div id="page"><?php echo $this->_tpl_vars['page']; ?>
</div>
</body>
</html>